import createAxios from '/@/utils/axios'

export const apiUrl = '/api/ai.app';

// 获取分类
export function get_category(params: any) {
    return createAxios({
        url: apiUrl + '/category',
        method: 'get',
        params: params,
    })
}

// 获取应用
export function get_app(params: any) {
    return createAxios({
        url: apiUrl + '/index',
        method: 'get',
        params: params,
    })
}

// 安装应用
export function install_app(params: any) {
    return createAxios({
        url: apiUrl + '/install',
        method: 'post',
        data: params,
    })
}
